<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
<style type="text/css">
#insert{
	display: inline-block;
	margin-left: 30px;
}
#all{
	margin-left: 27%;
	margin-top: 40px;
	text-align: center;
	display: inline-block;
}

#update{
	display: inline-block;
	margin-left: 30px;
}

</style>
</head>
<body>
<div id="all">
<form >
	<table border="1">
	<caption >所有电话号码尾号为8的员工基本信息</caption>
		<tr>
			<th>员工编号</th>
			<th>姓名</th>
			<th>电话号码</th>
			<th>年龄</th>
			<th>薪水</th>
			<th>部门编号</th>
			<th>部门名称</th>
			<th>部门地址</th>
		</tr>
		<c:forEach items="${list }" var="e">
		<tr>
			<td>${e.id}</td>
			<td>${e.name}</td>
			<td>${e.phone}</td>
			<td>${e.age}</td>
			<td>${e.salary}</td>
			<td>${e.dept.id}</td>
			<td>${e.dept.deptName}</td>
			<td>${e.dept.deptAddr}</td>
		</tr>
		</c:forEach>
	</table>
</form>


</body>
</html>